package com.qf.commerce.mapper;

import com.qf.commerce.common.dto.DistributorOrderSelectDto;
import com.qf.commerce.common.dto.DistributorOrderToolDto;
import com.qf.commerce.common.vo.DistributorOrderVo;
import com.qf.commerce.entity.DistributorOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/14 19:52
 */

public interface DistributorOrderMapper {

    int insert(DistributorOrder record);

    DistributorOrderToolDto selectByOrderId(@Param("orderId") Integer orderId);

    List<DistributorOrderVo> selectAll();

    List<DistributorOrderVo> select(@Param("dto") DistributorOrderSelectDto dto);

    Integer updateStatusById(DistributorOrder dor);

    DistributorOrder selectUserIdByDistributorOrderId(Integer distributorOrderId);
}